import { httpReq } from "@/utils/http.js"

const GetCangkuList = (data) => {
	return httpReq({
		url: '/cangku/GetCangkuList',
		method: 'GET',
		data
	})
}

const CreateCangku = (data) => {
	return httpReq({
		url: '/cangku/CreateCangku',
		method: 'POST',
		data
	})
}

const EditCangku = (data) => {
	return httpReq({
		url: '/cangku/EditCangku',
		method: 'POST',
		data
	})
}

const DelteteCangku = (data) => {
	return httpReq({
		url: '/cangku/DelteteCangku',
		method: 'GET',
		data
	})
}

const GetCangKuMessageList = (data) => {
	return httpReq({
		url: '/cangku/GetCangKuMessageList',
		method: 'GET',
		data
	})
}

const GetCangKuMessageMingxiList = (data) => {
	return httpReq({
		url: '/cangku/GetCangKuMessageMingxiList',
		method: 'GET',
		data
	})
}

const AddCangkuItem = (data) => {
	return httpReq({
		url: '/cangku/AddCangkuItem',
		method: 'POST',
		data
	})
}

const DlelteCangkuItem = (data) => {
	return httpReq({
		url: '/cangku/DlelteCangkuItem',
		method: 'GET',
		data
	})
}

export { GetCangkuList, CreateCangku, EditCangku, DelteteCangku, GetCangKuMessageList, GetCangKuMessageMingxiList, AddCangkuItem, DlelteCangkuItem }